/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.devmng.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.Office;
import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 设备Entity
 *
 * @author panda
 * @version 2017-12-02
 */

public class DeviceMain extends DataEntity<DeviceMain> {
    private static final long serialVersionUID = 1L;
    private String deviceName;        // 设备名称
    private String deviceCode;        // 设备编码
    private DeviceType deviceType;        // 设备类型
    private Office sysOffice;        // 部门
    private String deviceImgUrl; // 设备图片链接
    private String deviceManualName; // 设备手册名称
    private String deviceManualUrl; // 设备手册链接
    private User deviceUser; // 包机人
    private String examine; //审核

    public DeviceMain() {
        super();
    }

    public DeviceMain(String id) {
        super(id);
    }

    @Length(min = 1, max = 50, message = "设备名称长度必须介于 1 和 50 之间")
    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    @Length(min = 1, max = 50, message = "设备编码长度必须介于 1 和 50 之间")
    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public DeviceType getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(DeviceType deviceType) {
        this.deviceType = deviceType;
    }

    @NotNull(message = "部门不能为空")
    public Office getSysOffice() {
        return sysOffice;
    }

    public void setSysOffice(Office sysOffice) {
        this.sysOffice = sysOffice;
    }

    public String getDeviceImgUrl() {
        return deviceImgUrl;
    }

    public void setDeviceImgUrl(String deviceImgUrl) {
        this.deviceImgUrl = deviceImgUrl;
    }

    public String getDeviceManualName() {
        return deviceManualName;
    }

    public void setDeviceManualName(String deviceManualName) {
        this.deviceManualName = deviceManualName;
    }

    public String getDeviceManualUrl() {
        return deviceManualUrl;
    }

    public void setDeviceManualUrl(String deviceManualUrl) {
        this.deviceManualUrl = deviceManualUrl;
    }

    public User getDeviceUser() {
        return deviceUser;
    }

    public void setDeviceUser(User deviceUser) {
        this.deviceUser = deviceUser;
    }

    public String getExamine() {
        return examine;
    }

    public void setExamine(String examine) {
        this.examine = examine;
    }
    public enum examine {
        Y,
        N,

    }
}